#define _CRT_SECURE_NO_WARNINGS
#include"SeqList.h"

void test1()
{
	SeqList SL;
	SeqListInit(&SL);

	SeqListPushBack(&SL, 1);
	SeqListPushBack(&SL, 2);
	SeqListPushBack(&SL, 3);
	SeqListPushBack(&SL, 4);
	SeqListPushBack(&SL, 5);
	SeqListPushFront(&SL, 7);
	SeqListPushFront(&SL, 7);
	SeqListPushFront(&SL, 7);
	SeqListPushFront(&SL, 7);
	SeqListPopFront(&SL);
	SeqListPopBack(&SL);
	SeqListPrint(&SL);

	SeqListInsert(&SL, 2, 3);
	SeqListPrint(&SL);

	SeqListErase(&SL, 2);
	SeqListPrint(&SL);

	SeqListErase(&SL, SL.size-1);


	SeqListPrint(&SL);
	SeqListDestroy(&SL);
}

void test2()
{
	SeqList SL;
	SeqListInit(&SL);

	SeqListPushBack(&SL, 1);
	SeqListPushBack(&SL, 2);
	SeqListPushBack(&SL, 3);
	SeqListPushBack(&SL, 4);
	SeqListPushBack(&SL, 5);

	SeqListPrint(&SL);

	SeqListDestroy(&SL);
}

int main()
{
	//test1();
	test2();
	return 0;
}